<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {

           
        });

    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('coach/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            手机号：
        <input type="text" name="mobile" class="input" value="{$mobile}" />
        教练姓名：
        <input type="text" name="coachName" class="input" value="{$coachName}" />
            <button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('coach/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('coach/add')}">添加教练</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>创建时间</th>
            <th>教练姓名</th>
            <th>店铺名称</th>
            <th>手机号</th>
            <th>性别</th>
            <th>身份证号</th>
            <th>等级</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.coach_id}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.coach_name}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.mobile}</td>
                <td>{:getEnumString($gender,$vo['gender'])}</td>
                <td>{$vo.idcard_number}</td>
                <td>{$vo.level_name}</td>
                <td>
                    <a href='{:U("coach/edit",array("id"=>$vo["coach_id"]))}'>修改</a>|
                    <a class="J_ajax_del" href="{:U('coach/delete',array('id'=>$vo['coach_id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>